export const genFailColumns = vm => {
  return [
    {
      title: "命令",
      align: "center",
      render: (h, params) => {
        const row = { ...params.row };
        return h("span", row.type === 1 ? "断开" : "闭合");
      }
    },
    {
      title: "操作用户",
      align: "center",
      key: "userName",
      render: (h, params) => {
        const row = { ...params.row };
        return h("span", row.userName ? row.userName : "-");
      }
    },
    {
      title: "时间",
      align: "center",
      render: (h, params) => {
        const row = { ...params.row };
        return h("span", vm.moment(row.createdAt).format("YYYY-MM-DD HH:mm"));
      }
    }
  ];
};
